package Announce;


import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.text.DefaultStyledDocument;

import java.awt.Font;

public class ThongBaoForm extends JFrame {
	private static final long serialVersionUID = 1L;

	
	public JPanel contentPane;
	public JTextPane txtThgBao;
	public JScrollPane scrollPane;
	public Integer paraIndex;
	public DefaultStyledDocument doc;

	public ThongBaoForm() {
		
		setTitle("Th\u00F4ng B\u00E1o T\u1EEB Server");		
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setSize(450, 300);
		setLocationRelativeTo(null);
		setResizable(false);
		contentPane = new JPanel();
		setContentPane(contentPane);
		contentPane.setLayout(null);
		paraIndex = 0;
		
		doc = new DefaultStyledDocument();
		txtThgBao = new JTextPane(doc);
		txtThgBao.setEditable(false);
		txtThgBao.setFont(new Font("Tahoma", Font.PLAIN, 14));
		
		scrollPane = new JScrollPane(txtThgBao);
		scrollPane.setBounds(10, 11, 424, 250);
		contentPane.add(scrollPane);
	}
}
